<% if @user.id == session[:user_id] || (User.find(session[:user_id]).role.id == Role.superadmin.id)%>
<div class="change_profil"><%= link_to I18n.t('user.show.change_profil'), :action => :edit %></div>
<% end %>

<p>
  <b>Firstname:</b>
  <%=h @user.firstname %>
</p>
<p>
  <b>LastName:</b>
  <%=h @user.lastname %>
</p>
<p>
  <b>Email:</b>
  <%=h @user.email %>
</p>
<p>
  <b>Adress:</b>
  <%=h @user.adress %>
</p>
<p>
  <b>Code Postal:</b>
  <%=h @user.cp %>
</p>
<p>
  <b>City:</b>
  <%=h @user.city %>
</p>

<p>
  <b>Role:</b>
  <%=h Role.find(@user.role_id).label if @user.role_id != 0%>
</p>


<%= link_to 'Edit', edit_user_path(@user) %> |
<%= link_to 'Back', users_path %>